package com.hoshiicloud.user.service.organization;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.user.entity.organization.PlatOrganizationUsers;

import java.util.List;

/**
 * <p>
 * 租户机构用户 服务类
 * </p>
 *
 * @author campchen
 * @since 2019-05-27
 */
public interface PlatOrganizationUsersService extends IService<PlatOrganizationUsers> {

    IPage<PlatOrganizationUsers> getPage(IPage<PlatOrganizationUsers> page, QueryWrapper<PlatOrganizationUsers> queryWrapper, String key);

    PlatOrganizationUsers getById(Long id);

    String insert(PlatOrganizationUsers entity);

    boolean updateById(PlatOrganizationUsers entity);

    boolean deleteById(Long id);

    List<PlatOrganizationUsers> getByIds(List<Long> ids,String key);

    PlatOrganizationUsers getByOrgcode(String orgcode);
}
